package com.dl.designmodel.observer;

/**
 * @ProjectName: mcroservices
 * @Package: com.dl.designmodel.observer
 * @ClassName: Observer4
 * @Author: 86977
 * @Description: ${description}
 * @Date: 2021/6/29 15:00
 * @Version: 1.0
 */
public class Observer4 implements Observer {
  private String msg;

  @Override
  public void update(String name) {
    this.msg=name;
    read();
  }

  public  void read(){
    System.out.println( "44 收到推送消息： " + msg);
  }
}
